import request from '@/utils/request'
// 查询数据源列表
export function selectDimensionDetail(query) {
  return request({
    url: '/quota/dimensionDetail',
    method: 'get',
    params: query
  })
}
export function columnValue(query) {
  return request({
    url: '/quota/dimensionDetail/columnValue',
    method: 'get',
    params: query
  })
}

//根据
export function selectColumnDimenstionDetail(data) {
  return request({
    url: '/quota/dimensionDetail/detail',
    method: 'post',
    data: data
  })
}

//删除
export function delDimensionDetail(id){
  return request({
    url: '/quota/dimensionDetail?idList=' + id,
    method: 'delete'
  })
}

export function add(data){
  return request({
    url: '/quota/dimensionDetail',
    method: 'post',
    data: data
  })
}
export function batchAdd(data){
  return request({
    url: '/quota/dimensionDetail/batchAdd',
    method: 'post',
    data: data
  })
}
export function addDimensionDetail(data){
  return request({
    url: '/quota/dimensionDetail/addDetail',
    method: 'post',
    data: data
  })
}
